package com.gurid.service.ucenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gurid.service.base.model.BaseEntity;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author Gurid
 * @since 2024-06-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ucenter_member")
@Schema(name = "Member", description = "会员表")
public class Member extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "微信openid")
    private String openid;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "性别 1 男，2 女")
    private Boolean sex;

    @Schema(description = "年龄")
    private Boolean age;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "用户签名")
    private String sign;

    @Schema(description = "是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField("is_disabled")
    private Boolean disabled;

    @Schema(description = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
